package utils.node;

import gui.display.Display;
import utils.ServerConnection;

/**
 *
 * @author fuujin
 */
public class ServerNode extends DisplayNode
{
    private final ServerConnection server_;
    
    public ServerNode( ServerConnection server )
    {
        super();
        server_ = server;
    }
    
    public ServerConnection getServer()
    {
        return server_;
    }

    @Override
    public Display getDisplay() {
        return server_.getDisplay();
    }

    @Override
    public void remove() {
        throw new UnsupportedOperationException("Not supported yet.");
    }
    
    @Override
    public String toString()
    {
        return server_.getName();
    }
}
